//
//  FaceDetectManageer.h
//  CamH
//
//  Created by xqiu on 12-8-12.
//  Copyright (c) 2012年 ghu. All rights reserved.
//

#import <Foundation/Foundation.h>
#import <CoreMedia/CoreMedia.h>
#import "wxFDIF.h"

struct DataProcessOutput
{
    BOOL bFaceTurnLeft;         
    int  iTurnLeftFaceId;
    BOOL bFaceTurnRight;
    int  iTurnRightFaceId;
    float fSmileRate;           // 微笑比例
};


@interface FaceDetectManager : NSObject

@property (nonatomic) WXFDHandle *m_pHandle;
@property (nonatomic) WXFDParam  *m_pParam;

-(FaceDetectManager*)initWithWidth:(NSUInteger)width height:(NSUInteger)height;
-(NSInteger)detectFaceFromBuffer:(CMSampleBufferRef)buffer result:(WXFaceResult*)result;
-(NSInteger)detectFaceFromImage:(UIImage*)image result:(WXFaceResult*)pSDFlag;

@end
